/*
* @Author: steven.wang
* @Date:   2019-05-08 16:21:22
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-15 15:56:54
*/
import request from '@/utils/request'
/**
 * 获取网址导航列表
 * @author steven.wang
 * @DateTime 2019-05-08T16:21:46+0800
 */
export const list = query => {
    return request({
        url: '/serve/navi',
        method: 'get',
        params: query
    })
}
/**
 * 添加网址导航
 * @author steven.wang
 * @DateTime 2019-05-08T16:21:52+0800
 */
export const add = data => {
    return request({
        url: '/serve/navi',
        method: 'post',
        data
    })
}
/**
 * 获取网址分类列表
 * @author steven.wang
 * @DateTime 2019-05-15T15:33:51+0800
 */
export const listCategory = query => {
    return request({
        url: '/serve/naviCategory',
        method: 'get',
        params: query
    })
}
/**
 * 添加网址分类
 * @author steven.wang
 * @DateTime 2019-05-15T15:33:51+0800
 */
export const addCategory = data => {
    return request({
        url: '/serve/naviCategory',
        method: 'post',
        data
    })
}
/**
 * 更新网址导航
 * @author steven.wang
 * @DateTime 2019-05-08T16:21:58+0800
 */
export const update = data => {
    return request({
        url: '/serve/navi',
        method: 'put',
        data
    })
}
/**
 * 删除网址导航
 * @author steven.wang
 * @DateTime 2019-05-08T16:22:06+0800
 */
export const remove = data => {
    return request({
        url: '/serve/navi',
        method: 'delete',
        data
    })
}